Skip to content

Angle negation for Pymunk physics engine#2840

Open
lokman928 wants to merge 1 commit intopythonarcade:developmentfrom
lokman928:fix/angle-negation-for-pymunk-physics-engine
Open

Angle negation for Pymunk physics engine#2840
lokman928 wants to merge 1 commit intopythonarcade:developmentfrom
lokman928:fix/angle-negation-for-pymunk-physics-engine

Conversation

@lokman928
Copy link
Copy Markdown

@lokman928 lokman928 commented Apr 13, 2026

Background

As mention in #1887, arcade should auto-handling the negation with built-in PymunkPhysicsEngine

Solution detail

In both the add_sprite and set_rotation methods of arcade/pymunk_physics_engine.py, the conversion from sprite angle to physics body angle now uses math.radians(-sprite.angle) instead of math.radians(sprite.angle), ensuring consistent and correct rotational behavior between the sprite and its physics representation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant